package com.zzyl.mapper;

import com.zzyl.dto.BedDto;
import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);

    //新增床位
    void createBed(Bed bed);

    //删除床位
    void deleteBed(Long id);

    //根据id回显数据
    BedVo getBed(Long id);

    //修改
    void updateBed(Bed bed);
}

